<template>
  <div id="changepwd">
    <h4>添加账号</h4>
    <main>
      <p>
        <span>账号</span>
        <el-input placeholder="请输入内容" v-model="input" clearable>
        </el-input>
      </p>
      <p>
        <span>密码</span>
        <el-input
          placeholder="请输入新密码"
          v-model="inputPwd"
          show-password
        ></el-input>
      </p>
      <p>
        <span class="group">用户组</span>
        <el-select v-model="value" clearable placeholder="请选择" >
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
      </p>
      <div class="buttonADD">
        <el-button>添加</el-button>
        <el-button>重置</el-button>
      </div>
    </main>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input: "",
      inputPwd: "",
      inputNew: "",
      
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ],
      value: "",
    };
  },
};
</script>

<style lang="less" scoped>
#changepwd {
  width: 100%;
  height: 100%;
  background-color: #fff;
  h4 {
    padding-left: 30px;
    width: 100%;
    line-height: 50px;
    border-bottom: 1px solid #999;
  }
  p {
    padding-left: 100px;
    margin: 20px 0 20px 0;
    display: flex;
    line-height: 40px;
  }
  .el-input {
    width: 300px;
    margin-left: 20px;
  }

  p:nth-child(3) {
    padding-left: 86px;
  }
  .el-select{
    width: 300px;
  }

  .buttonADD {
    padding-left: 168px;
    height: 100px;
    button {
      margin-right: 30px;
    }
  }
  .group {
    margin-right: 19px;
  }
}
</style>